# $NetBSD: Makefile,v 1.10 2014/10/09 14:06:28 thomasklausner Exp $
#

DISTNAME=		libpusb
PKGNAME=		libpusb-0.1
CATEGORIES=		devel
MASTER_SITES=		http://benoit.is-a-geek.net/bsd-tmp/

MAINTAINER=		imil@gcu.info
COMMENT=		Simple and portable USB development interface


ONLY_FOR_PLATFORM=	FreeBSD-*-* NetBSD-*-* OpenBSD-*-* Linux-*-*

WRKSRC=			${WRKDIR}/libpusb/src
MAKE_ENV+=		${BSD_MAKE_ENV}

INSTALL_TARGET=		install includes

pre-build:
	cd ${WRKSRC} && ${MAKE} clean # archive's dirty

SUBST_CLASSES+=		path
SUBST_MESSAGE.path=	Setting up hardcoded path.
SUBST_FILES.path=	Makefile
SUBST_STAGE.path=	post-patch
SUBST_SED.path=		-e 's|/usr/pkg|${PREFIX}|'

.include "../../mk/bsd.pkg.mk"
